"""Test functions etc, for Byterun."""

from __future__ import print_function
from . import vmtest
import six

PY3 = six.PY3

class TtestFunctions(vmtest.VmTestCase):
    def test_functions(self):
        self.assert_ok("""\
            def foo():
                m = 3
                n = 5
                def bar():
                    a = 4
                    return m + n + a
                return bar
            bar = foo()
            bar()
            """)
